home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2.sit
/
Raven 1.2
/
Resources
/
RavenDebug.r
< prev
next >
Wrap
Text File
|
1997-08-23
|
11KB
|
364 lines
/*
* File: RavenDebug.r
* Summary: Raven resources
* Written by: Jesse Jones
*
* Copyright ゥ 1996-1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <3> 8/05/97 JDJ Removed 'STR#' resources.
* <2> 7/20/97 JDJ Added 'TxGr' resource.
* <1> 6/30/96 JDJ Created
*/
#include <BalloonTypes.r>
#include <RavenTypes.r>
// Note that resource ids below 256 and lower case commands are reserved for Raven.
// ===================================================================================
// Menus
// ===================================================================================
// menu id 128 is taken by PowerPlant
// Debug
resource 'MENU' (230, "Debug") {
230, textMenuProc, allEnabled, enabled, "Debug",
{
"MACSBUG", noIcon, "オ", noMark, plain,
"Enable Intense Debuggingノ", noIcon, noKey, noMark, plain,
"Enable Heap Checking", noIcon, noKey, noMark, plain,
"Ignore ASSERTs", noIcon, noKey, noMark, plain,
"Show SIOUX", noIcon, noKey, noMark, plain,
"Show Pane Invalidations", noIcon, noKey, noMark, plain,
"-", noIcon, noKey, noMark, plain,
"Show Memory Window", noIcon, noKey, noMark, plain,
"Eat Memory", noIcon, "", noMark, plain,
"Purge Memory", noIcon, "ケ", noMark, plain,
"Don't Free Deleted Blocks", noIcon, noKey, noMark, plain,
"Dump Object Heap", noIcon, noKey, noMark, plain,
"-", noIcon, noKey, noMark, plain,
"Echo TRACEs to SIOUX", noIcon, noKey, noMark, plain,
"Echo TRACEs to Debug Log", noIcon, noKey, noMark, plain,
"Echo all TRACEFLOWs to Log", noIcon, noKey, noMark, plain,
"TRACEFLOW Categories", noIcon, hierarchicalMenu, "¥0d234", plain,
"-", noIcon, noKey, noMark, plain,
"Enable Monkey", noIcon, "ツ", noMark, plain,
"-", noIcon, noKey, noMark, plain,
"Unit Tests", noIcon, hierarchicalMenu, "¥0d235", plain,
}
};
resource 'Rcmd' (230, "Debug") { {
"macsbug", // MACSBUG
"intense debugging", // Enable Intense Debuggingノ
"heap check", // Enable Heap Checking
"assert", // Ignore ASSERTs
"show sioux", // Show SIOUX
"show invalidations", // Show Pane Invalidations
"nothing", // -
"show heap", // Show Memory Window
"eat memory", // Eat Memory
"purge memory", // Purge Memory
"free deleted blocks", // Don't Free Deleted Blocks
"dump object heap", // Dump Object Heap
"nothing", // -
"trace to sioux", // Echo TRACEs to SIOUX
"trace to file", // Echo TRACEs to File
"trace all to file", // Echo all TRACEFLOWs to File
"traceflow", // TRACEFLOW Categories
"nothing", // -
"monkey", // Enable Monkey
"nothing", // -
"unit tests", // Unit Tests
} };
resource 'hmnu' (230, "Debug", purgeable) {
HelpMgrVersion,
hmDefaultOptions,
0, 0,
// Default menu item text
HMSkipItem {
// no missing items
},
{
// Debug menu title
HMStringItem {
"Use this menu to help debug your application.", // Enabled
"", // Disabled
"This menu's not available; respond to the dialog box.", // Disabled by dialog box
"This command's not available; respond to the dialog box.", // Menus items disabled by dialog box
},
// MACSBUG
HMStringItem {
"Drops you into MACSBUG.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// Enable Intense Debuggingノ
HMStringItem {
"Enables and disables extra debugging code.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// Enable Heap Checking
HMStringItem {
"Enables and disables checking the object heap before every call to operator new.", // Enabled
"Enables and disables checking the object heap before every call to operator new."
"Disabled because leak checking is off.", // Disabled
"", // Checked
"", // Marked
},
// Ignore ASSERTs
HMStringItem {
"Enables and disables dropping into the debugger when an ASSERT fires.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// Show SIOUX
HMStringItem {
"Shows and hides the SIOIX window.", // Enabled
"Shows and hides the SIOIX window. Not available because the SIOUX window "
"hasn't been constructed (i.e. nothing has been written to SIOUX yet).", // Disabled
"", // Checked
"", // Marked
},
// Show Pane Invalidations
HMStringItem {
"Toggles a delay after a pane is drawn.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// -
HMSkipItem {
},
// Show Memory Window
HMStringItem {
"Shows or hides a window showing information about the app, temp, system, and object heaps.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// Eat Memory
HMStringItem {
"Gobbles up 10% of the free memory. Note that this memory is never released.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// Purge Memory
HMStringItem {
"Purges all purgeable handles.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// Don't Free Deleted Blocks
HMStringItem {
"Enables and disables freeing deleted blocks (this can be useful if you "
"suspect the memory is being used after being deleted since it prevents "
"another object from reusing that memory).", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// Dump Object Heap
HMStringItem {
"Dumps a bunch of information about the object heap to SIOUX.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
// -
HMSkipItem {
},
// Echo TRACEs to SIOUX
HMStringItem {
"Causes TRACEs and TRACEFLOWs to go to SIOUX.", // Enabled
"", // Disabled
"Prevents TRACEs and TRACEFLOWs from going to SIOUX.", // Checked
"", // Marked
},
// Echo TRACEs to File
HMStringItem {
"Causes TRACEs and TRACEFLOWs to go to SIOUX.", // Enabled
"", // Disabled
"Prevents TRACEs and TRACEFLOWs from going to SIOUX.", // Checked
"", // Marked
},
// Echo all TRACEFLOWs to File
HMStringItem {
"Causes TRACEs and all TRACEFLOWs to go to a log file.", // Enabled
"", // Disabled
"Prevents disabled TRACEFLOWs from going to a log file.", // Checked
"", // Marked
},
// TRACEFLOW Categories
HMSkipItem {
},
// -
HMSkipItem {
},
// Enable Monkey
HMStringItem {
"Creates a monkey that acts as (a real stupid) virtual user.", // Enabled
"Creates a monkey that acts as (a real stupid) virtual user. "
"Not available because the monkey isn't implemented yet.", // Disabled
"", // Checked
"", // Marked
},
// -
HMSkipItem {
},
// Unit Tests
HMSkipItem {
},
}
};
// TRACEFLOW Categories
resource 'MENU' (234, "TRACEFLOW Categories") {
234, textMenuProc, allEnabled, enabled, "TRACEFLOW Categories",
{
}
};
resource 'Rcmd' (234, "TRACEFLOW Categories") { {
} };
resource 'hmnu' (234, "TRACEFLOW Categories", purgeable) {
HelpMgrVersion,
hmDefaultOptions,
0, 0,
// Default menu item text
HMStringItem {
"Enables and disables a TRACEFLOW category.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
{ // TRACEFLOW Categories menu title
HMStringItem {
"Use this menu to enable and disable TRACEFLOW categories.", // Enabled
"", // Disabled
"This menu's not available; respond to the dialog box.", // Disabled by dialog box
"This command's not available; respond to the dialog box.", // Menus items disabled by dialog box
},
}
};
// Units Tests
resource 'MENU' (235, "Unit Tests") {
235, textMenuProc, allEnabled, enabled, "Unit Tests",
{
"Test Everything", noIcon, noKey, noMark, plain,
}
};
resource 'Rcmd' (235, "Unit Tests") { {
"do every unit test", // Test Everything
} };
resource 'hmnu' (235, "Unit Tests", purgeable) {
HelpMgrVersion,
hmDefaultOptions,
0, 0,
// Default menu item text
HMStringItem {
"Executes a function that tests a Raven or app class.", // Enabled
"", // Disabled
"", // Checked
"", // Marked
},
{ // Unit Tests menu title
HMStringItem {
"Use this menu to test some of Raven's classes. "
"Note that you can create unit tests for your application classes "
"see ZUnitTest.h for details.", // Enabled
"", // Disabled
"This menu's not available; respond to the dialog box.", // Disabled by dialog box
"This command's not available; respond to the dialog box.", // Menus items disabled by dialog box
},
}
};
resource 'MENU' (236, "Memory Window Context Menu") {
236, textMenuProc, allEnabled, enabled, "Memory Window Context Menu",
{
"Show Application", noIcon, noKey, noMark, plain,
"Show Temporary", noIcon, noKey, noMark, plain,
"Show System", noIcon, noKey, noMark, plain,
"Show Object", noIcon, noKey, noMark, plain,
}
};
resource 'Rcmd' (236, "Memory Window Context Menu") { {
"toggle application", // Show Application
"toggle temporary", // Show Temporary
"toggle system", // Show System
"toggle object", // Show Object
} };
// menu id's 250-252 are taken by PowerPlant
// ===================================================================================
// Strings
// ===================================================================================
// STR# id's 150-153, 200 are taken by PowerPlant
// ===================================================================================
// Lexer Grammer Resource (used by Parser unit test)
// ===================================================================================
resource 'TxGr' (128, "Expression Grammer") { {
'#', "[0-9]+",
0, "",
'+', "+",
'-', "-",
'*', "*",
'/', "/",
'(', "(",
')', ")",
} };